var o = require("../../datas/list_data.js");

Page({
    data: {
        coupon: [],
        swiperIndex: [ "https://upload-images.jianshu.io/upload_images/28145789-02f21f8308c5c581.jpg?imageMogr2/auto-orient/strip|imageView2/2/w/750/format/webp", "https://upload-images.jianshu.io/upload_images/28145789-16938283e901c819.png?imageMogr2/auto-orient/strip|imageView2/2/w/512/format/webp" ]
    },
    onLoad: function(a) {
        this.setData({
            coupon: o.coupon
        });
    },
    wx_click: function(o) {
        wx.previewImage({
            current: o.currentTarget.dataset.src,
            urls: this.data.swiperIndex
        });
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {}
});